package shuai.model;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;


/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users  implements java.io.Serializable {


    // Fields    

     private BigDecimal id;
     private BigDecimal loginid;
     private String loginpwd;
     private String name;
     private String phone;
     private Set<Orders> orderses = new HashSet<Orders>(0);


    // Constructors

    /** default constructor */
    public Users() {
    }

	/** minimal constructor */
    public Users(BigDecimal loginid, String loginpwd, String name, String phone) {
        this.loginid = loginid;
        this.loginpwd = loginpwd;
        this.name = name;
        this.phone = phone;
    }
    
    /** full constructor */
    public Users(BigDecimal loginid, String loginpwd, String name, String phone, Set<Orders> orderses) {
        this.loginid = loginid;
        this.loginpwd = loginpwd;
        this.name = name;
        this.phone = phone;
        this.orderses = orderses;
    }

   
    // Property accessors

    public BigDecimal getId() {
        return this.id;
    }
    
    public void setId(BigDecimal id) {
        this.id = id;
    }

    public BigDecimal getLoginid() {
        return this.loginid;
    }
    
    public void setLoginid(BigDecimal loginid) {
        this.loginid = loginid;
    }

    public String getLoginpwd() {
        return this.loginpwd;
    }
    
    public void setLoginpwd(String loginpwd) {
        this.loginpwd = loginpwd;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Set<Orders> getOrderses() {
        return this.orderses;
    }
    
    public void setOrderses(Set<Orders> orderses) {
        this.orderses = orderses;
    }
   








}